﻿@model List<HuaHan.WorkTicket.Domain.Menu>
<div class="span2 main-menu-span" >
    <div class="well nav-collapse sidebar-nav" style="min-height:500px;">
        <ul  id="menu">
            @{
                foreach (var item in Model)
                {
                    <li class="nav-header hidden-tablet">@item.Name
                        <ul>
                            @{
                                foreach (var child in item.ChildMenus)
                                {
                                    var activeClass = string.Empty;
                                    if (child.Controller == ViewContext.RouteData.Route.GetRouteData(this.Context).Values["controller"].ToString())
                                    {
                                        activeClass = "active";
                                    }
                                    <li class="maginMenuBottom"><a class="ajax-link" href="@Url.Action(child.Action, child.Controller)"><i class="@child.Ico"></i><span class="hidden-tablet  @activeClass">@child.Name</span></a></li>
                                }
                            }
                        </ul>
                    </li>
                }
            }
            @*<li class="nav-header hidden-tablet">Main
                <ul>
                    
                </ul>
            </li>
            <li class="nav-header hidden-tablet">生产管理
                <ul>
                    <li class="maginMenuBottom"><a class="ajax-link" href="ui.html"><i class="icon-eye-open"></i><span class="hidden-tablet">订单管理</span></a></li>
                    <li class="maginMenuBottom"><a class="ajax-link" href="form.html"><i class="icon-edit"></i><span class="hidden-tablet">无扫描枪录入</span></a></li>
                    <li class="maginMenuBottom"><a class="ajax-link" href="chart.html"><i class="icon-list-alt"></i><span class="hidden-tablet">菲票扫描</span></a></li>
                </ul>
            </li>

            <li class="nav-header hidden-tablet">报表查询
                <ul>
                    <li class="maginMenuBottom"><a class="ajax-link" href="typography.html"><i class="icon-font"></i><span class="hidden-tablet">计件工资报表</span></a></li>
                    <li class="maginMenuBottom"><a class="ajax-link" href="gallery.html"><i class="icon-picture"></i><span class="hidden-tablet">工资总报表</span></a></li>
                    <li class="maginMenuBottom"><a class="ajax-link" href="gallery.html"><i class="icon-picture"></i><span class="hidden-tablet">生产进度表</span></a></li>
                </ul>
            </li>

            <li class="nav-header hidden-tablet">企业管理器
                <ul>
                    <li class="maginMenuBottom"><a class="ajax-link" href="@Url.Action("Index", "Department")"><i class="icon-align-justify"></i><span class="hidden-tablet">组织机构</span></a></li>
                    <li class="maginMenuBottom"><a class="ajax-link" href="@Url.Action("Index", "Employee")"><i class="icon-align-justify"></i><span class="hidden-tablet">员工管理</span></a></li>
                </ul>
            </li>

            <li class="nav-header hidden-tablet">基础数据
                <ul>
                    <li class="maginMenuBottom"><a class="ajax-link" href="@Url.Action("Index", "Color")"><i class="icon-align-justify"></i><span class="hidden-tablet">颜色设定</span></a></li>
                    <li class="maginMenuBottom"><a class="ajax-link" href="calendar.html"><i class="icon-calendar"></i><span class="hidden-tablet">客户设定</span></a></li>
                    <li class="maginMenuBottom"><a class="ajax-link" href="grid.html"><i class="icon-th"></i><span class="hidden-tablet">款式类型</span></a></li>
                    <li class="maginMenuBottom"><a class="ajax-link" href="file-manager.html"><i class="icon-folder-open"></i><span class="hidden-tablet">基础款式</span></a></li>
                    <li class="maginMenuBottom"><a href="tour.html"><i class="icon-globe"></i><span class="hidden-tablet">尺码设置</span></a></li>
                    <li class="maginMenuBottom"><a class="ajax-link" href="icon.html"><i class="icon-star"></i><span class="hidden-tablet">工序设置</span></a></li>
                </ul>
            </li>

            <li class="nav-header hidden-tablet">系统设置
                <ul>
                    <li class="maginMenuBottom"><a class="ajax-link" href="@Url.Action("MenuList", "Menu")"><i class="icon-align-justify"></i><span class="hidden-tablet">菜单管理</span></a></li>
                </ul>
            </li>*@

        </ul>
    </div>
    <!--/.well -->
</div>
<!--/span-->
